package comp6231.project.replica.kelvin;

public interface RemoteRetailStoreServer {

	/**
	 * Buy from another Server
	 * @param serverName Server name
	 * @param customerID 6-character Customer ID
	 * @param itemID 4-digit Item ID
	 * @param numberOfItem Number of items to buy
	 * @return StoreLogic.RESULT_SUCCEED when operation is successful, StoreLogic.RESULT_FAILED otherwise
	 */
	public int buyFromServer(String serverName, String customerID, String itemID, int numberOfItem);
	
	/**
	 * Return sum of all number of items available from other servers 
	 * @param itemID 4-digit Item ID
	 * @return Number of items from other servers
	 */
	public int checkStockFromOtherServers(String itemID);
	
	public String[] getOtherStoreNames();	
}
